﻿using System;
using System.Collections.Generic;
using Data.Common;
using Data.Model;
using Data.ViewModel;

namespace DataAccess.AccountManage
{
    public interface IBusinesses
    {
        int AddBusiness(Data.Model.Business business);

        //根据日期获取统计数据
        ResultInfo<List<businesscount>> GetBusinessCount(DateTime date);
        //根据时间段获取统计数据
        ResultInfo<List<businesscount>> GetBusinessCount(DateTime startDate, DateTime endDate);
        /// <summary>
        /// 获取业务报表
        /// </summary>
        /// <param name="beginDate">开始时间</param>
        /// <param name="endDate">结束时间</param>
        /// <param name="operateid">操作人员</param>
        /// <param name="addressid">操作点</param>
        /// <param name="businesstype">业务类型</param>
        /// <returns></returns>
        ResultInfo<List<BusinessView>> GetBusinessReport(DateTime? beginDate,
                                                                                   DateTime? endDate, Int64? operateid,
                                                                                   Int64? addressid, int? businesstype);
    }
}
